package com.ruoyi.situation.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.situation.mapper.DySgHistoryMapper;
import com.ruoyi.situation.domain.DySgHistory;
import com.ruoyi.situation.service.IDySgHistoryService;

/**
 * 大营束管历史Service业务层处理
 * 
 * @author lth
 * @date 2024-12-06
 */
@Service
public class DySgHistoryServiceImpl extends ServiceImpl<DySgHistoryMapper, DySgHistory> implements IDySgHistoryService //修改
{
    @Autowired
    private DySgHistoryMapper dySgHistoryMapper;

    /**
     * 查询大营束管历史
     * 
     * @param sghistoryId 大营束管历史主键
     * @return 大营束管历史
     */
    @Override
    public DySgHistory selectDySgHistoryBySghistoryId(Long sghistoryId)
    {
        return dySgHistoryMapper.selectDySgHistoryBySghistoryId(sghistoryId);
    }

    /**
     * 查询大营束管历史列表
     * 
     * @param dySgHistory 大营束管历史
     * @return 大营束管历史
     */
    @Override
    public List<DySgHistory> selectDySgHistoryList(DySgHistory dySgHistory)
    {
        return dySgHistoryMapper.selectDySgHistoryList(dySgHistory);
    }

    /**
     * 新增大营束管历史
     * 
     * @param dySgHistory 大营束管历史
     * @return 结果
     */
    @Override
    public int insertDySgHistory(DySgHistory dySgHistory)
    {
        return dySgHistoryMapper.insertDySgHistory(dySgHistory);
    }

    /**
     * 修改大营束管历史
     * 
     * @param dySgHistory 大营束管历史
     * @return 结果
     */
    @Override
    public int updateDySgHistory(DySgHistory dySgHistory)
    {
        return dySgHistoryMapper.updateDySgHistory(dySgHistory);
    }

    /**
     * 批量删除大营束管历史
     * 
     * @param sghistoryIds 需要删除的大营束管历史主键
     * @return 结果
     */
    @Override
    public int deleteDySgHistoryBySghistoryIds(Long[] sghistoryIds)
    {
        return dySgHistoryMapper.deleteDySgHistoryBySghistoryIds(sghistoryIds);
    }

    /**
     * 删除大营束管历史信息
     * 
     * @param sghistoryId 大营束管历史主键
     * @return 结果
     */
    @Override
    public int deleteDySgHistoryBySghistoryId(Long sghistoryId)
    {
        return dySgHistoryMapper.deleteDySgHistoryBySghistoryId(sghistoryId);
    }
}
